package com.yuyou.activity.ts.service.mapper;

import com.yuyou.activity.ts.service.entity.ActivityTsQuestionConfig;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityTsQuestionConfigMapper {
    int deleteByPrimaryKey(Long activityTsQuestionConfigId);

    int insert(ActivityTsQuestionConfig record);

    ActivityTsQuestionConfig selectByPrimaryKey(Long activityTsQuestionConfigId);

    int updateByPrimaryKeySelective(ActivityTsQuestionConfig record);

    /**
     * 根据 projectCode 查找试卷题目
     * @param projectCode
     * @return
     */
    List<ActivityTsQuestionConfig> findByProjectCode(String projectCode);

    /**
     * 批量插入试卷题目
     * @param activityTsQuestionConfigList
     * @return
     */
    int batchInsertQuestionConfig(List<ActivityTsQuestionConfig> activityTsQuestionConfigList);
}